21. Video: Calculating the p-value

Calculating the p-value

There are a lot of moving parts in these videos. Let's highlight the process:

  1. Simulate the values of your statistic that are possible from the null.
  2. Calculate the value of the statistic you actually obtained in your data.
  3. Compare your statistic to the values from the null.
  4. Calculate the proportion of null values that are considered extreme based on your alternative.